export const header = ui_item({
  $$id: 'pageshead',
  title: [
    {
      title: ' ',
      itemClass: 'icon-saui logo'
    },
    {
      title: 'SAUI', itemClass: 'item-logo-title'
    }
  ],
  body: [
    {
      title: '欢迎您',
      itemClass: 'flex-row al-item-center size'
    },
    {
      title: 'xxx',
      itemClass: 'ml-default'
    },
    {
      title: 'Search',
      itemClass: 'like-search ml-auto',
      aim: 'onSearchPop?name=mike'
    },
    {
      title: ' ',
      itemClass: 'icon-nav color-fff ',
      tap: 'onNav'
    },
  ],
  itemClass: 'admin-header router-header',
  titleClass: 'item-logo color-fff',
  onNav(e, param, inst) {
    header.toggleClass('activeSwitch')
  }, 
  onSearchPop(e, param, inst){
    const name = param.name
    alert('搜索所有关于'+name+'的文章')
  }
})